//С˷ؽɫ 2018-12-26  Development 
procedure TfrmMain.AppLogoutEx;
begin
  if g_boQueryExit then
    exit;
  g_boQueryExit := True;
  try
    SendClientMessage(CM_SOFTCLOSE, 0, 0, 0, 0);
    CloseAllWindows;
    //ڽС˺ʧӣ 2018-12-27  Development ޸
    if not g_boQueryExit then begin
     g_SoftClosed := TRUE;
     ActiveCmdTimer (tcSoftClose);
    end else begin
     ActiveCmdTimer (tcReSelConnect);
    end;

    g_PlayScene.ClearActors;
    FreeOldWMImagesLib(); //С˺ͷͼƬ 2018-12-26  Development 
    ActiveCmdTimer(tcSoftClose);
    SaveBagsData();
    SaveItemFilter();
  finally
    g_boQueryExit := False;
  end;
end;